<?php
 /**
 * @file
 * 
 * Copyright 2011 by Matthew Wakim  
 * This program is part of Donate. Donate is free software.  It comes with 
 * absolutely no warranty. You can redistribute it and/or modify it under the 
 * terms of the GNU General Public License as published by the Free Software 
 * Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 *
 * @version 
 * @author Mathew Wakim
 * @author Mathew Vartanian
 * @author Scott Adie
 * @author David Meehan
 */

/**
 * Connects to the donate data
 * @return $connection result of connection atempt
 */
function connect() {
  $host = 'localhost';
  $database = 'donate';
  $username = 'donate';
  $password = 'donate';

  $connection = new mysqli($host, $username, $password, $database);
  if(mysqli_connect_errno()) {
    printf("Connection failed!< br />");
    exit();
  }
  return $connection;
}
?>